/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2022-07-16     82752       the first version
 */
#ifndef SRC_LORA_JSON_MSG_OBJ_H_
#define SRC_LORA_JSON_MSG_OBJ_H_

#include "lora_net_manager.h"
#include <rtdbg.h>

typedef struct lora_node_property {
    uint8_t wsn_type;
    sensor_type_t sensor_type;
    uint16_t addr;
}lora_node_property_t;

struct th_msg {
    uint8_t temp_value;
    uint8_t humid_value;
    lora_node_property_t base_property;

};

struct light_msg {
    uint16_t light_value;
    lora_node_property_t base_property;

};

char *create_json_th_sensor_msg(struct th_msg *msg);
char *create_json_light_sensor_msg(struct light_msg *msg);

#endif /* SRC_LORA_JSON_MSG_OBJ_H_ */
